﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site2.master" AutoEventWireup="true" CodeFile="BsucarContratacion.aspx.cs" Inherits="BsucarContratacion" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="Infragistics4.WebUI.UltraWebGrid.v10.3, Version=10.3.20103.1013, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.UltraWebGrid" TagPrefix="igtbl" %>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

            <form id="BusquedaC" runat="server">
            
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>

      

        	<h1> Busqueda</h1>
            <div class="pages_thumb">
              <table >
      
                <tr>
                    <td class="gris"> Buscar: </td>
                    <td> <input name="buscar" class="form_input" id="cname" value="busqueda" size="60" runat ="server"/></td>
                    <td>                     
                    <asp:Button ID="btnConsultar" runat="server" Text="Consultar" 
                        onclick="btnConsultar_Click" />
                    </td>
                </tr>
                <tr><td colspan="2" >
                  <label>
                        Palabras claves para buscar: Nombre candidato preseleccionado</label><br />
                  <label>
                    <input type="checkbox" name="Documentacion" value="10" id="Documentacion_9" runat ="server" />
                    Todos los registros</label>
                  <br />
                    <br />                    
                    </td><td >
                        &nbsp;</td></tr>
              </table>
              <table width="100%">
              
           	  <tr>
              	<td>
                    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                    <ContentTemplate>
                    <asp:GridView ID="grdDatos" runat="server"
                            Width="100%" AllowPaging="True" AllowSorting="True" 
                            DataKeyNames="IdSolicitud" AutoGenerateColumns="False"
                            GridLines="None" 
                            onselectedindexchanged="grdDatos_SelectedIndexChanged1" CellPadding="4" 
                            ForeColor="#333333" onpageindexchanging="grdDatos_PageIndexChanging">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                      <Columns>   
                            <asp:CommandField  ShowEditButton="false"  ShowDeleteButton="false"   
                                ShowSelectButton="true" SelectText="Ver">
                            <ControlStyle Width="25px" Font-Italic="True" />
                            </asp:CommandField>
                            <asp:BoundField 
                             DataField="IdSolicitud" 
                             HeaderText=" No. "
                             SortExpression="IdSolicitud" 
                              ControlStyle-Width="10px" >
                            <ControlStyle Width="15px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                           <asp:BoundField 
                             DataField="IdOrden" 
                             HeaderText=" Orden Servicio"
                             SortExpression="IdOrden" 
                              ControlStyle-Width="10px" >
                            <ControlStyle Width="15px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Nombre1" 
                             HeaderText="Nombre"
                             SortExpression="Nombre1" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Paterno" 
                             HeaderText=" Paterno" 
                              ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Materno" 
                             HeaderText=" Materno" 
                              ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField DataField="PuestoSolicitado" HeaderText="Puesto " 
                                SortExpression="PuestoSolicitado">
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Curp" HeaderText="CURP">
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField DataField="RFC" HeaderText="RFC">
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="EscolaridadMaxima" 
                             HeaderText="Escolaridad" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="30px" />
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Puntaje" HeaderText="Rating" 
                                SortExpression="Puntaje" >
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TieneExperiencia" HeaderText="Experiencia">
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Cliente" HeaderText="Cliente" 
                                SortExpression="Cliente" >
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Oficina" HeaderText="Oficina" 
                                SortExpression="Oficina" >
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                       </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                    </ContentTemplate>
                     </asp:UpdatePanel>
                    </td>
                
               </tr>
            </table>

            <hr />
             
              <table width="100%">
              
              
           	  <tr>
              	<td>
                        Detalle de la Orden</td>
                
               </tr>
              
           	  <tr>
              	<td>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                    <asp:GridView ID="grdDatosOrden" runat="server"
                            Width="100%" AllowPaging="True" AllowSorting="True" 
                            DataKeyNames="IdSolicitud" AutoGenerateColumns="False"
                            GridLines="Horizontal" 
                            CellPadding="3" BackColor="White" BorderColor="#E7E7FF" 
                        BorderStyle="None" BorderWidth="1px" 
                                onselectedindexchanged="grdDatosOrden_SelectedIndexChanged" 
                                onpageindexchanging="grdDatosOrden_PageIndexChanging">
                        <AlternatingRowStyle BackColor="#F7F7F7" />
                      <Columns>   
                            <asp:CommandField  ShowEditButton="false"  ShowDeleteButton="false"   
                                ShowSelectButton="true" SelectText="Ver">
                            <ControlStyle Width="25px" />
                            </asp:CommandField>
                            <asp:BoundField 
                             DataField="IdSolicitud" 
                             HeaderText=" No. "
                             SortExpression="IdSolicitud" 
                              ControlStyle-Width="10px" >
                            <ControlStyle Width="15px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Nombre1" 
                             HeaderText="Nombre"
                             SortExpression="Nombre1" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Paterno" 
                             HeaderText=" Paterno" 
                              ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Materno" 
                             HeaderText=" Materno" 
                              ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField DataField="PuestoSolicitado" HeaderText="Puesto " 
                                SortExpression="PuestoSolicitado">
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Curp" HeaderText="CURP">
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField DataField="RFC" HeaderText="RFC">
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="EscolaridadMaxima" 
                             HeaderText="Escolaridad" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="30px" />
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Puntaje" HeaderText="Rating" 
                                SortExpression="Puntaje" >
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TieneExperiencia" HeaderText="Experiencia">
                            <HeaderStyle Font-Size="XX-Small" />
                            </asp:BoundField>
                       </Columns>
                        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
                        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                        <SortedAscendingCellStyle BackColor="#F4F4FD" />
                        <SortedAscendingHeaderStyle BackColor="#5A4C9D" />
                        <SortedDescendingCellStyle BackColor="#D8D8F0" />
                        <SortedDescendingHeaderStyle BackColor="#3E3277" />
                    </asp:GridView>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    </td>
                
               </tr>
            </table>

            </div>
            

            </form> 
</asp:Content>
